finding an element in infinite sorted array

visit shbcf.ru